package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName post
 */
@TableName(value ="post")
@Data
public class Post implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id" , type = IdType.AUTO)
    private Long id;

    /**
     * 方案食物联系表
     */
    @TableField(value = "balance_Food_Relation_ID")
    private Long balanceFoodRelationId;

    /**
     * 帖子标题
     */
    @TableField(value = "post_Title")
    private String postTitle;

    /**
     * 帖子内容
     */
    @TableField(value = "post_Content")
    private String postContent;

    /**
     * 图片1
     */
    @TableField(value = "post_ImageOne")
    private String postImageOne;

    /**
     * 图片2
     */
    @TableField(value = "post_ImageTwo")
    private String postImageTwo;

    /**
     * 喜欢
     */
    @TableField(value = "post_Like")
    private Integer postLike;

    /**
     * 回复
     */
    @TableField(value = "post_Reply")
    private Integer postReply;

    /**
     * 浏览量
     */
    @TableField(value = "post_View")
    private Integer postView;

    /**
     * 帖子标签
     */
    @TableField(value = "post_Tags")
    private String postTags;

    /**
     * 0普通帖/1置顶帖/2精华帖等等
     */
    @TableField(value = "post_Type")
    private Integer postType;

    /**
     * 0已删除/1已发布/2草稿
     */
    @TableField(value = "post_Status")
    private Integer postStatus;

    /**
     * 创建时间
     */
    @TableField(value = "post_Create_Time")
    private LocalDateTime postCreateTime;

    /**
     * 更新时间
     */
    @TableField(value = "post_Update_Time")
    private LocalDateTime postUpdateTime;

    /**
     * 0删除
     */
    @TableLogic
    @TableField(value = "post_Is_Delete")
    private Integer postIsDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}